package com.shxzz.easy12306.services.user.common.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * Redis 中 Key 常量类
 * @author shxzz
 * @create 2024-02-27-22:43
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class RedisKeyConstant {
    /**
     * 用户名复用集合前缀
     */
    public static final String USERNAME_REUSE_SET_PREFIX = "user-service:username-reuse:";

    /**
     * 用户注册锁前缀
     */
    public static final String LOCK_USER_REGISTER_PREFIX = "user-service:lock:user-register";

    /**
     * 用户注销锁前缀
     */
    public static final String LOCK_USER_DELETION_PREFIX = "user-service:lock:user-deletion";

    /**
     * 用户乘客列表缓存前缀
     */
    public static final String USER_PASSENGER_LIST_PREFIX = "user-service:user-passenger-cache:";
}
